import React from 'react'
// import HocLogin from '../../utile/HocLogin'
import withRouter from '../../utile/withRouter'
import {Button } from 'react-vant'
import { useNavigate,useLocation,use } from 'react-router-dom'
function My({router}) {
  console.log(router)
  const goDtail=()=>{
    console.log('sss')
    router.navigate('/detailList')
  }
  return (
    <div>
      <Button onClick={()=>{
       goDtail()
      }}>去地址列表</Button>
    </div>
  )
}

export default withRouter(My)